package com.aerotechnic.models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.ManyToOne;

import javax.persistence.Table;
@Entity
@Table(name= "TABLE")
public class Visite extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	@Column(name = "INTITULE")
	protected String intitule;
	@Column(name = "DESC")
	protected String desc;
	@Column(name = "CHECK")
	protected String check;
	@ManyToOne(fetch = FetchType.EAGER, targetEntity = Avion.class)
	protected Avion avion;
	@OneToOne(fetch = FetchType.EAGER, targetEntity = PlanningMere.class)
	protected PlanningMere planning;
	
	
	public String getIntitule() {
		return intitule;
	}
	public void setIntitule(String intitule) {
		this.intitule = intitule;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getCheck() {
		return check;
	}
	public void setCheck(String check) {
		this.check = check;
	}
	public Avion getAvion() {
		return avion;
	}
	public void setAvion(Avion avion) {
		this.avion = avion;
	}
	public PlanningMere getPlanning() {
		return planning;
	}
	public void setPlanning(PlanningMere planning) {
		this.planning = planning;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	

}
